import React from 'react';
import "./index.less"

function Index ({ cancelTxt, sureTxt,getSubmitCancel,getSubmitSure }) {
    const submitSure = () =>{
        getSubmitSure()
    }

    const submitCancel = ()=>{
        getSubmitCancel()
    }   

    return (
        <div className='btn-line' >
            <div className="btn-cacel" onClick={submitCancel}>{cancelTxt}</div>
            <div className="btn-sure" onClick={ submitSure}>{sureTxt}</div>
        </div>
    );
}

export default Index;
